<!DOCTYPE html>
<html>
<head>
    <title>日行一善</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="initial-scale=1.0, width=device-width, user-scalable=no" />
    <link rel="stylesheet" type="text/css" href="/home/wxzf/css/wxzf.css">
    <script src="/home/wxzf/js/jquery.js"></script>
    <script type="text/javascript">
        $(function(){
            //出现浮动层
            $(".ljzf_but").click(function(){
                $(".ftc_wzsf").show();
            });
            //关闭浮动
            $(".close").click(function(){
                $(".ftc_wzsf").hide();
            });
            //数字显示隐藏
            $(".xiaq_tb").click(function(){
                $(".numb_box").slideUp(500);
            });
            $(".mm_box").click(function(){
                $(".numb_box").slideDown(500);
            });
            //----
            var i = 0;
            $(".nub_ggg li a").click(function(){
                i++
                if(i<6){
                    $(".mm_box li").eq(i-1).addClass("mmdd");
                }else{
                    $(".mm_box li").eq(i-1).addClass("mmdd");
                    setTimeout(function(){
                        location.href="cg.html";
                    },500);
                    //window.document.location="cg.html"
                }
            });

            $(".nub_ggg li .del").click(function(){

                if(i>0){
                    i--
                    $(".mm_box li").eq(i).removeClass("mmdd");
                    i==0;
                }

            });

        });
    </script>
</head>
<body>
<div class="header">
    <div class="all_w ">
        <div class="gofh"> <a href="../shouye/index.html"><img src="/home/wxzf/images/jt_03.jpg" ></a> </div>
        <div class="ttwenz">
            <h4>确认交易</h4>
            <h5>微信安全支付</h5>
        </div>
    </div>
</div>
<div class="wenx_xx">
    <div class="mz">嘉善县慈善总会</div>
    <div class="wxzf_price">￥{{$price}}</div>
</div>
<div class="skf_xinf">
    <div class="all_w"> <span class="bt">收款方</span> <span class="fr">嘉善县慈善总会</span> </div>
</div>
<a href="javascript:void(0);" class="ljzf_but all_w">立即支付</a>

<!--浮动层-->

</body>
</html>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript" charset="utf-8">
    function pay() {
        var WXPayment = function() {
            if( typeof WeixinJSBridge === 'undefined' ) {
                alert('请在微信在打开页面！');
                return false;
            }
            WeixinJSBridge.invoke(
                'getBrandWCPayRequest', <?php echo $payment->getConfig(); ?>, function(res) {
                    switch(res.err_msg) {
                        case 'get_brand_wcpay_request:cancel':
                            alert('用户取消支付！');
                            break;
                        case 'get_brand_wcpay_request:fail':
                            alert('支付失败！（'+res.err_desc+'）');
                            break;
                        case 'get_brand_wcpay_request:ok':
                            alert('支付成功！');
                            break;
                        default:
                            alert(JSON.stringify(res));
                            break;
                    }
                });
        }
    }
</script>